package com.test;

import java.util.Scanner;

public class Stringdemo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String number = sc.next();
        int length = number.length();
        for(int i=0;i<7-length;i++)
        {
            number = '0' + number;
        }
        System.out.println(number);
        String arr[] = {"bai", "shi", "wan","qian","bai","shi","yuan"};
        String num[] = {"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};
        String s = "";
        for(int i=0;i<7;i++)
        {
            System.out.print(number.charAt(i)+arr[i]);
        }


    }
}
